/*
 * Copyright 2020 StreamSets Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.users-groups-page {

  .page-panel {
    margin-bottom: 0;

    .panel-heading {
      height: 45px;
      padding: @smallPadding @smallPadding*3;
      box-shadow: 0 1px 4px rgba(0, 0, 0, .2);

      .panel-title {
        h3 {
          padding-top: @smallPadding;
          margin: 0;
          font-size: 20px;
          padding-right: @defaultPadding;
        }
      }
    }
  }
  .panel-body {
    overflow: auto;
  }
  .list-content {
    .list-group-item {
      position: relative;
      border-left: 0;
      border-right: 0;

      &:hover{
        &:not(:first-child) {
          box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
        }
        .list-actions {
          display: block;
        }
      }

      &.active-info {
        color: #31708f;
        background-color: #d9edf7;
      }

      &.header-list-group-item {
        border: 0;
        color: #333;
        background-color: #f5f5f5;
      }

      &:last-child {
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
      }

      .list-actions {
        display: none;
        position: absolute;
        right: 10px;
        top: 10px;
        > i {
          padding: 5px;
          color: #333;
          cursor: pointer;
          &:hover {
            color: black;
          }
        }
      }

      .header {
        display: inline-block;
        font-weight: bold;
        a {
          cursor: pointer;
          color: black;
        }
      }

      &.center-align {
        text-align: center;
      }

      .user-name {
        width: 33%;
        display: inline-block;
        word-break: break-all;
        padding-left: 10px;
      }

      .user-roles {
        width: 33%;
        display: inline-block;
        padding-left: 10px;
      }

      .user-groups {
        width: 33%;
        display: inline-block;
      }
    }

  }

}
